Skip to content

fix(cowork): hide OpenClaw main agent sessions from session list#1181

Open
Noodles006 wants to merge 1 commit intonetease-youdao:mainfrom
Noodles006:fix/hide-openclaw-main-agent-session
Open

fix(cowork): hide OpenClaw main agent sessions from session list#1181
Noodles006 wants to merge 1 commit intonetease-youdao:mainfrom
Noodles006:fix/hide-openclaw-main-agent-session

Conversation

@Noodles006
Copy link
Copy Markdown

@Noodles006 Noodles006 commented Apr 1, 2026

Summary

  • The OpenClaw main agent session (used internally for heartbeat/cron routing) was created with a hardcoded [OpenClaw] title and appeared in the user-facing Cowork session list, causing user confusion
  • Added a hidden column to cowork_sessions table and mark main agent sessions as hidden on creation
  • Filter hidden sessions from listSessions, conversation search, and recent sessions queries
  • Existing [OpenClaw] sessions are retroactively hidden via DB migration

问题表现

main任务记录列表透出OpenClaw字样,且任务详情里展示看不懂的信息。会让用户以为是OpenClaw套壳,影响用户体验。
image

Changes

File Change
src/main/sqliteStore.ts Add hidden INTEGER column migration + retroactive hide of existing [OpenClaw] sessions
src/main/coworkStore.ts Accept options.hidden in createSession, filter hidden=1 in list/search queries
src/main/libs/openclawChannelSessionSync.ts Pass { hidden: true } when creating main agent sessions

修复后效果

image

The OpenClaw main agent session was created with a hardcoded "[OpenClaw]"
title and appeared in the user-facing session list, causing confusion.

Add a hidden column to cowork_sessions and mark main agent sessions as
hidden on creation. Filter hidden sessions from listSessions, search,
and recent sessions queries. Existing "[OpenClaw]" sessions are
retroactively hidden via migration.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

This pull request has been inactive for 30 days. It will be automatically closed in 14 days unless there is new activity.

If you're still working on this, please leave a comment or push new commits to keep it open. Thank you!

@github-actions github-actions Bot added the stale label May 1, 2026
@Noodles006
Copy link
Copy Markdown
Author

Noodles006 commented May 1, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant